package smoketest.demo;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.util.StopWatch;
import smoketest.SpringBootTestApplication;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = SpringBootTestApplication.class)
//@EnableAsync
public class SpringBootTest1 {
	@Autowired
	private Student student;

	@Test
	public void test1() {
		System.out.println(student.getAge());
		System.out.println(student.getUserName());
	}

	@Test
	public void test2(){
		StopWatch stopWatch = new StopWatch("");
		stopWatch.start();
		System.out.println("122222");
		stopWatch.stop();
		System.out.println(stopWatch.getTotalTimeSeconds());
	}
}
